Skip to main content
Version: 4.0

Developing Service

Create services to publish data inside the warehouse or sources added to supOS, or external services as APIs, and then third-party users can get the data through the published API.

Creating Registration Service

Register third-party services in X-DAM and open them to public.

  1. Log in to supOS, and then select Data Intelligence > Data Service > Service development.

  2. Click to add system and directory.

  3. Click New, and then select Registration service.

  4. Enter basic information of the service, and then click Next.

    info

    The default return type is Penetrate, meaning to forward everything the service returns.

  5. Click Next, configure the service parameters.

  • Backend service host is where the data located (host IP and port).
  • Backend service path is from the service request URL (after the host IP and port).
  • Based on the service request type, set its request parameter, content-type and request body (only for PUT/POST).
  1. Click Next, check the service parameters, and then click Start testing.

  1. Click Next, check the results of both successful and failed calls, and then click Save and publish.
    tip

    You can edit the results.

info

All services created through indicators are Registration service.

Creating Data Service

Open internal data, such as sources added to supOS or X-DAM data warehouses, to public.

  1. Click New, and then select Data service.
  2. Similar to Registration service, enter the basic information of the service.
  3. Click Next to configure parameters.
  • Wizard:
      1. Select a data source.
      2. Click Request params or Return params under Field preview to add corresponding fields to query/path parameters or the results of the service.
      3. Click Next.

  • SQL:
    1. Select a data source.
    2. Write SQL statements according to your requirements.
      tip
      • Click SQL writing tips to read about the notes before writing.
      • Click Format to format your statements.
    3. Click Parse to parse the statements and output return parameters to Return parameter definition.
    4. Click Next.

  1. Click Next, check the service parameters, and then click Start testing.

  1. Click Next, check the results of both successful and failed calls, and then click Save and publish.